<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>二手车</title>
    <link rel="stylesheet" type="text/css" href="css/UsedCar.css">
</head>
<body>
<div class="top">
    <p style="display: flex;justify-content: space-between;margin-top: 8%;">

            <span onclick="window.location.href='index.html'">
                <img src="images/xiaoyuhao.png" alt="" width="16%" style="margin-left:24%;margin-top: 3%;">
            </span>

        <span style="margin-left: 16%; font-size: 90%;font-weight: bold;width:70%" >二手车</span>

        <span>
                <img src="images/InForm.png" alt="" width="16%" style="margin-left: 56%;margin-top: 3%;">
            </span>
    </p>
</div>
<div class="container">
    <div class="car">
        <img src="images/t2.png" style="border-radius: 8px;position: absolute;">
        <p class="p"><b>588ku T800 2019款自动带天窗</b></p>
        <span style="position: absolute;left: 140px;top:30px">2019款 2.0T 自动</span>
        <span style="position: absolute;left: 140px;top: 50px;font-size: 8px;color: red;">
                <i class="fa fa-yen"></i>
                <span style="font-size: 18px;">12.36万</span>
            </span>
    </div>
    <div class="car">
        <img src="images/t2.png" style="border-radius: 8px;position: absolute;">
        <p class="p"><b>588ku T800 2019款自动带天窗</b></p>
        <span style="position: absolute;left: 140px;top:30px">2019款 2.0T 自动</span>
        <span style="position: absolute;left: 140px;top: 50px;font-size: 8px;color: red;">
                <i class="fa fa-yen"></i>
                <span style="font-size: 18px;">12.36万</span>
            </span>
    </div>
    <div class="car">
        <img src="images/t2.png" style="border-radius: 8px;position: absolute;">
        <p class="p"><b>588ku T800 2019款自动带天窗</b></p>
        <span style="position: absolute;left: 140px;top:30px">2019款 2.0T 自动</span>
        <span style="position: absolute;left: 140px;top: 50px;font-size: 8px;color: red;">
                <i class="fa fa-yen"></i>
                <span style="font-size: 18px;">12.36万</span>
            </span>
    </div>
    <div class="car">
        <img src="images/t2.png" style="border-radius: 8px;position: absolute;">
        <p class="p"><b>588ku T800 2019款自动带天窗</b></p>
        <span style="position: absolute;left: 140px;top:30px">2019款 2.0T 自动</span>
        <span style="position: absolute;left: 140px;top: 50px;font-size: 8px;color: red;">
                <i class="fa fa-yen"></i>
                <span style="font-size: 18px;">12.36万</span>
            </span>
    </div>
    <div class="car">
        <img src="images/t2.png" style="border-radius: 8px;position: absolute;">
        <p class="p"><b>588ku T800 2019款自动带天窗</b></p>
        <span style="position: absolute;left: 140px;top:30px">2019款 2.0T 自动</span>
        <span style="position: absolute;left: 140px;top: 50px;font-size: 8px;color: red;">
                <i class="fa fa-yen"></i>
                <span style="font-size: 18px;">12.36万</span>
            </span>
    </div>
    <div class="car">
        <img src="images/t2.png" style="border-radius: 8px;position: absolute;">
        <p class="p"><b>588ku T800 2019款自动带天窗</b></p>
        <span style="position: absolute;left: 140px;top:30px">2019款 2.0T 自动</span>
        <span style="position: absolute;left: 140px;top: 50px;font-size: 8px;color: red;">
                <i class="fa fa-yen"></i>
                <span style="font-size: 18px;">12.36万</span>
            </span>
    </div>
</div>


<script>
    var aTags = document.getElementsByClassName("car");
    console.log(123);
    console.log(aTags);
    for (var i = 0; i < aTags.length; i++) {
        aTags[i].addEventListener("click", function() {
            window.location.href='carDateaisl.html';
        });
    }
    function td(){
        if (window.frames.length != parent.frames.length) {
            console.log('有父级页面');
            window.history.back()
        }else{
            console.log('无父级页面')
            window.location.href='./index.html'
        }
    }
</script>
</body>
</html>